<template>
    <div>
        <h1>我是首页</h1>
        <el-carousel indicator-position="outside">
            <el-carousel-item v-for="item in ban" :key="item">
                <img :src="item">
            </el-carousel-item>
        </el-carousel>
    </div>
</template>
<script>
export default {
    data(){
        return {
            ban:[
                require('@/assets/12-2/a.jpg'),
                require('@/assets/12-2/b.jpg'),
                require('@/assets/12-2/c.jpg'),
            ]
        }
    }
}
</script>
<style>
img{
    width: 100%;
    height: 100%;
}
</style>